/**
 * Copyright 2015-2016 eyaomall.cn
 * All rights reserved.
 *
 * @project
 * @author yuhuafeng
 * @version 1.0
 * @date 2016-03-07
 */
package com.eyaomall.wxmanage.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.eyaomall.wxmanage.model.vo.OperLogVO;
import com.eyaomall.wxmanage.service.OperLogService;
import com.lycheeframework.core.cmp.api.http.ApiData;
import com.lycheeframework.core.cmp.api.http.ApiResponse;
import com.lycheeframework.core.cmp.kit.PageHTTPObject;
/**
 * 操作日志
 * @author yuhuafeng
 *
 */
@Controller
@RequestMapping("oper_log")
public class OperLogController {
	
	@Autowired
	private OperLogService operLogService;
	
	/**
	 * 首页
	 * @return
	 */
	@RequestMapping("index")
	public String index(){
		
		return "oper_log/index";
	}
	
	/**
	 * 分页查询数据
	 * @param log
	 * @return
	 */
	@RequestMapping("page_data")
	public @ResponseBody ApiData pageData(OperLogVO log,PageHTTPObject httpObj){
		
		return ApiResponse.toData(operLogService.page(log,httpObj));
	}
}
